3.35 \(\int \cos ^4(e+f x) (-4+3 \sec ^2(e+f x)) \, dx\)

Optimal. Leaf size=19 \[ -\frac {\sin (e+f x) \cos ^3(e+f x)}{f} \]

[Out]

-cos(f*x+e)^3*sin(f*x+e)/f

________________________________________________________________________________________

Rubi [A]  time = 0.02, antiderivative size = 19, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.048, Rules used = {4043} \[ -\frac {\sin (e+f x) \cos ^3(e+f x)}{f} \]

Antiderivative was successfully verified.

[In]

Int[Cos[e + f*x]^4*(-4 + 3*Sec[e + f*x]^2),x]

[Out]

-((Cos[e + f*x]^3*Sin[e + f*x])/f)

Rule 4043

Int[(csc[(e_.) + (f_.)*(x_)]*(b_.))^(m_.)*(csc[(e_.) + (f_.)*(x_)]^2*(C_.) + (A_)), x_Symbol] :> Simp[(A*Cot[e
 + f*x]*(b*Csc[e + f*x])^m)/(f*m), x] /; FreeQ[{b, e, f, A, C, m}, x] && EqQ[C*m + A*(m + 1), 0]

Rubi steps

\begin {align*} \int \cos ^4(e+f x) \left (-4+3 \sec ^2(e+f x)\right ) \, dx &=-\frac {\cos ^3(e+f x) \sin (e+f x)}{f}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.03, size = 31, normalized size = 1.63 \[ -\frac {\sin (2 (e+f x))}{4 f}-\frac {\sin (4 (e+f x))}{8 f} \]

Antiderivative was successfully verified.

[In]

Integrate[Cos[e + f*x]^4*(-4 + 3*Sec[e + f*x]^2),x]

[Out]

-1/4*Sin[2*(e + f*x)]/f - Sin[4*(e + f*x)]/(8*f)

________________________________________________________________________________________

fricas [A]  time = 0.41, size = 19, normalized size = 1.00 \[ -\frac {\cos \left (f x + e\right )^{3} \sin \left (f x + e\right )}{f} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(f*x+e)^4*(-4+3*sec(f*x+e)^2),x, algorithm="fricas")

[Out]

-cos(f*x + e)^3*sin(f*x + e)/f

________________________________________________________________________________________

giac [A]  time = 0.64, size = 25, normalized size = 1.32 \[ -\frac {\tan \left (f x + e\right )}{{\left (\tan \left (f x + e\right )^{2} + 1\right )}^{2} f} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(f*x+e)^4*(-4+3*sec(f*x+e)^2),x, algorithm="giac")

[Out]

-tan(f*x + e)/((tan(f*x + e)^2 + 1)^2*f)

________________________________________________________________________________________

maple [B]  time = 1.45, size = 45, normalized size = 2.37 \[ \frac {-\left (\cos ^{3}\left (f x +e \right )+\frac {3 \cos \left (f x +e \right )}{2}\right ) \sin \left (f x +e \right )+\frac {3 \sin \left (f x +e \right ) \cos \left (f x +e \right )}{2}}{f} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(f*x+e)^4*(-4+3*sec(f*x+e)^2),x)

[Out]

1/f*(-(cos(f*x+e)^3+3/2*cos(f*x+e))*sin(f*x+e)+3/2*sin(f*x+e)*cos(f*x+e))

________________________________________________________________________________________

maxima [A]  time = 0.34, size = 33, normalized size = 1.74 \[ -\frac {\tan \left (f x + e\right )}{{\left (\tan \left (f x + e\right )^{4} + 2 \, \tan \left (f x + e\right )^{2} + 1\right )} f} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(f*x+e)^4*(-4+3*sec(f*x+e)^2),x, algorithm="maxima")

[Out]

-tan(f*x + e)/((tan(f*x + e)^4 + 2*tan(f*x + e)^2 + 1)*f)

________________________________________________________________________________________

mupad [B]  time = 2.35, size = 19, normalized size = 1.00 \[ -\frac {{\cos \left (e+f\,x\right )}^3\,\sin \left (e+f\,x\right )}{f} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(e + f*x)^4*(3/cos(e + f*x)^2 - 4),x)

[Out]

-(cos(e + f*x)^3*sin(e + f*x))/f

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (3 \sec ^{2}{\left (e + f x \right )} - 4\right ) \cos ^{4}{\left (e + f x \right )}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(f*x+e)**4*(-4+3*sec(f*x+e)**2),x)

[Out]

Integral((3*sec(e + f*x)**2 - 4)*cos(e + f*x)**4, x)

________________________________________________________________________________________